package com.itheima.client;

import com.itheima.client.fallback.OrderClientsFallBack;
import com.itheima.cloud.response.OrderVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient(value = "order-server",fallback = OrderClientsFallBack.class)
public interface OrderClient  {

    @GetMapping("/order/findOrderByUsername")
    public List<OrderVO> findOrderByUsername(@RequestParam("username") String username);
}
